package com.example.securitydemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuec
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/test")
    String test(){
        return "test can view!";
    }

    @GetMapping("/admin")
    String testAdmin(){
        return "admin can view!";
    }

    @GetMapping("/customer")
    String testCustomer(){
        return "customer can view!";
    }
}
